a=input("请输入a")
b=input("请输入b")
c=input("请输入c")

if a>b:
    if a>c:
        x1=a
        if b>c:
            x2=b
            x3=c
        else:
            x2=c
            x3=b
    else:
        x1=c
        x2=a
        x3=b
else:
    if b>c:
        x1=b
        if a>c:
            x2=a
            x3=c
        else:
            x2=c
            x3=a
    else:
        x1=c
        x2=b
        x3=a
print(x1)
print(x2)
print(x3)


